<template>
	<view>
		<view class="empty"></view>
		<view class="menu">
			<view class="list-box">
				<view class="items-box left-84" @click="menuClick(1)">
					<image class="icon" src="/static/icons/home-n.png" mode=""></image>
					<view class="text-box">首页</view>
				</view>
				<view class="items-box1" @click="menuClick(2)">
					<image class="icon" src="/static/icons/more-n.png" mode=""></image>
					<view class="text-box width-80">更多活动</view>
				</view>
				<view class="items-box" @click="menuClick(3)">
					<image class="icon" src="/static/icons/my-n.png" mode=""></image>
					<view class="text-box">我的</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'footer-menu',
		data() {
			return {
			  
			}
		},
		methods: {
			menuClick(type) {
				switch (type){
					case 1:
					uni.switchTab({
						url: '/pages/index/index'
					})
					break;
					case 2:
					uni.switchTab({
						url: '/pages/activity/index'
					})
					break;
					case 3:
					uni.switchTab({
						url: '/pages/mine/index'
					})
					break;
				}
			},
		}
	}
</script>

<style scoped lang="scss">
.empty{
	width:100%;
	height: 150rpx;
}
.menu{
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 140rpx;
	background: #FFFFFF;
	overflow: hidden;
	.list-box{
		width: 100%;
		height: 112rpx;
		overflow: hidden;
		font-weight: 400;
		font-size: 20rpx;
		color: rgba(0,0,0,0.9);
		text-align: center;
		font-style: normal;
		text-transform: none;
		.items-box{
			width: 56rpx;
			height: 90rpx;
			float: left;
			margin-top:8rpx;
			overflow: hidden;
			.icon{
				display: block;
				width: 56rpx;
				height: 56rpx;
			}
			.text-box{
				margin-top:8rpx;
				width: 100%;
				height:26rpx ;
				line-height: 26rpx;
			}
		}
		.items-box1{
			width: 80rpx;
			height: 90rpx;
			float: left;
			margin-top:8rpx;
			overflow: hidden;
			margin-left: 195rpx;
			margin-right: 195rpx;
			.icon{
				display: block;
				width: 56rpx;
				height: 56rpx;
				margin-left:12rpx;
			}
			.text-box{
				margin-top:8rpx;
				width: 100%;
				height:26rpx ;
				line-height: 26rpx;
			}
		}
		
		.left-84{
			margin-left: 84rpx;
		}
	}

}
</style>
